package com.qianguo.buyer.entity;


import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.annotation.JSONField;
import com.eva.androidlibrary.api.entity.BaseBean;

/**
 * @author guxun
 * @date 16/6/28
 */
public class AddShopCar extends BaseBean implements Parcelable {

    public int getCartid() {
        return cartid;
    }

    public void setCartid(int cartid) {
        this.cartid = cartid;
    }

    /**
     * 购物车id
     */

    @JSONField(name = "cartid")
    private int cartid;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.cartid);
    }

    public AddShopCar() {
    }

    protected AddShopCar(Parcel in) {
        this.cartid = in.readInt();
    }

    public static final Creator<AddShopCar> CREATOR = new Creator<AddShopCar>() {
        @Override
        public AddShopCar createFromParcel(Parcel source) {
            return new AddShopCar(source);
        }

        @Override
        public AddShopCar[] newArray(int size) {
            return new AddShopCar[size];
        }
    };
}
